package zuoye3;

public abstract class Card {
    private String id;
    private double money;
    private int pay;
    public abstract void payMoney( double  money ,double paymoney);

    public Card() {
    }

    public Card(String id, double money, int pay) {
        this.id = id;
        this.money = money;
        this.pay = pay;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public double getPay() {
        return pay;
    }

    public void setPay(int pay) {
        this.pay = pay;
    }

    @Override
    public String toString() {
        return "Card{" +
                "id='" + id + '\'' +
                ", money='" + money + '\'' +
                ", pay='" + pay + '\'' +
                '}';
    }
}
